class Discussion < BaseModel
  self.table_name = 'GDN_Discussion'
  self.export_table_name = 'discussions'
  self.export_mappings = {
    id: 'DiscussionID',
    title: 'Name',
    category_id: 'CategoryID',
    user_id: 'InsertUserID',
    content: 'Body',
    parser: 'parser',
    comments_count: 'CountComments',
    views: 'CountViews',
    last_comment_user_id: 'LastCommentUserID',
    last_comment_at: 'DateLastComment',
    created_at: 'DateInserted',
    updated_at: 'DateUpdated',
  }

  def parser
    'html'
  end
end